package modles

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}

type Perm struct {
	gorm.Model
	PermName string `gorm:"type:varchar(50)"`
}

type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type RolePerm struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Pid int `gorm:"type:int"`
}

type People struct {
	gorm.Model
	PeopleCode int    `gorm:"type:int"`
	PeopleName string `gorm:"type:varchar(50)"`
	PeopleAge  int    `gorm:"type:int"`
	PeoPleTel  int    `gorm:"type:int"`
	Email      string `gorm:"type:varchar(50)"`
}

type Order struct {
	gorm.Model
	OrderName   string `gorm:"type:varchar(50)"`
	OrderStatus string `gorm:"type:varchar(50)"`
	Pid         int    `gorm:"type:int"`
}

type OrderPeopleList struct {
	OrderID     int
	OrderName   string
	OrderStatus string
	PeopleCode  int
	PeopleName  string
	PeopleAge   int
	PeoPleTel   int
	Email       string
}
